/**
 * Created by IntelliJ IDEA.
 * User: wadim
 * Date: 29.12.11
 * Time: 15:54
 * To change this template use File | Settings | File Templates.
 */
package ru.cjay.loading {
import flash.events.EventDispatcher;
import flash.utils.Dictionary;

public class SWFAssetList extends EventDispatcher {

    private var _name:String;
    private var _url:String;
    private var _assets:Dictionary;

    public function SWFAssetList(p_name:String=null,p_url:String=null) {
        _name = p_name;
        _url = p_url;
        _assets = new Dictionary();
    }

    public function addAsset(name:String, path:String):void{

        if (!(name in _assets)){
            _assets[name]=path;
        }
    }

    public function get name():String {
        return _name;
    }

    public function set name(value:String):void {
        _name = value;
    }

    public function get url():String {
        return _url;
    }

    public function set url(value:String):void {
        _url = value;
    }

    public function get_asset_path(name:String):String{
        return _assets[name];
    }


    public function get assets():Dictionary {
        return _assets;
    }


}
}
